#!/bin/sh

FILES=$(find ".hx" . | grep -e ".hx$")

for f in $FILES
do
  echo $f
  sed -i 's/\(package[\.a-zA-Z ]\+\){/\1;/;s/package \+;//;/^}/d' $f
  sed -i 's@^//@\t\t//@' $f
done
